﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.plaf.basic.background {
    import flash.display.*;
    import org.aswing.*;
    import flash.filters.*;
    import org.aswing.geom.*;
    import org.aswing.plaf.*;
    import org.aswing.graphics.*;
    import org.aswing.plaf.basic.*;

    public class TableBackground implements GroundDecorator, UIResource {

        protected var shape:Shape;

        public function TableBackground(){
            this.shape = new Shape();
        }
        public function getDisplay(_arg1:Component):DisplayObject{
            return (this.shape);
        }
        public function updateDecorator(_arg1:Component, _arg2:Graphics2D, _arg3:IntRectangle):void{
            var _local4:StyleTune;
            var _local5:ASColor;
            var _local6:StyleResult;
            var _local7:ASColor;
            this.shape.graphics.clear();
            if (_arg1.isOpaque()){
                _arg2 = new Graphics2D(this.shape.graphics);
                _local4 = _arg1.getStyleTune().mide;
                _local5 = _arg1.getMideground();
                _local6 = new StyleResult(_local5, _local4);
                _arg3 = _arg3.clone();
                _local6.cdark = _local6.cdark.changeAlpha(1);
                _local6.clight = _local6.clight.changeAlpha(1);
                BasicGraphicsUtils.fillGradientRoundRect(_arg2, _arg3, _local6, (-(Math.PI) / 2));
                _local7 = _local6.bdark;
                this.shape.filters = [new BevelFilter(1, 45, 0xFFFFFF, 0.4, 0, 0.4, 1, 1, 1, 1, BitmapFilterType.INNER), new GlowFilter(0xFFFFFF, 0.5, 2, 2, 20, 1, true), new GlowFilter(_local7.getRGB(), 1, 2, 2, 20, 1)];
                this.shape.alpha = _local5.getAlpha();
            };
            this.shape.visible = _arg1.isOpaque();
        }

    }
}//package org.aswing.plaf.basic.background 
